FROM ubuntu:trusty
MAINTAINER EmrysLee  ***@***.com


# 复制相关文件到容器
ADD /lwWeb  ~/MyBlog/lwWeb
ADD /blog   ~/MyBlog/blog
ADD /manage.py   ~/manage.py
ADD /db.sqlite3  ~/db.sqlite3

# 与外界的交换端口
EXPOSE  8123

RUN apt-get update && apt-get install -y wget
RUN apt-get update
RUN wget --no-check-certificate https://bootstrap.pypa.io/ez_setup.py
RUN python3 ez_setup.py

# 测试用的
ENTRYPOINT python3
CMD ["-m http.server 80"]
ENTRYPOINT python3